package cn.demo.um.support.model;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
public class MatchScoreDto {
    private String userId;
    private double score;
    /*记录下匹配的参数*/
    List<String> factors = new ArrayList<>();
    public void addFactor(String attrCode){
        factors.add(attrCode);
    }

    @Override
    public String toString() {
        return "MatchScoreDto{" +
                "userId='" + userId + '\'' +
                ", score=" + score +
                ", factors=" + factors +
                '}';
    }

    public MatchScoreDto(String userId) {
        this.userId = userId;
    }
}
